package com.jxs.android.util;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class DetainUtils {

	public static void detainDialog(Context context, String title, String message, DialogInterface.OnClickListener okListener) {


		AlertDialog.Builder b = new AlertDialog.Builder(context).setTitle(null==title?"":title).setMessage(message);
		b.setPositiveButton("确定", okListener).setNeutralButton("取消", new DialogInterface.OnClickListener() {

			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		}).show();
	}
}
